package demo2;

public class Test {
    public static void main(String[] args)throws CloneNotSupportedException {//2.抛出异常
        Student student1=new Student("ww",22,90.9);
        Student student2=(Student) student1.clone();//3.向下转型
        System.out.println(student1.money.money);
        System.out.println(student2.money.money);
        System.out.println("========");
        student2.money.money=19.9;
        System.out.println(student1.money.money);
        System.out.println(student2.money.money);

    }
}
